﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site/Master/Main.Master" AutoEventWireup="true"
    CodeBehind="MemberEdit.aspx.cs" Inherits="ECommerce.Web.Site.MemberEdit" %>

<%@ Register src="controls/UserCenterDir.ascx" tagname="UserCenterDir" tagprefix="uc1" %>
<%@ Register src="controls/SaleRank.ascx" tagname="SaleRank" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="styles/member.css" rel="stylesheet" type="text/css" />
     <script src="../Common/Js/Calendar.js" type="text/javascript"></script>

    <script type="text/javascript">
        function validate()
        {            
            if ($("#<%=txtPassword.ClientID %>").val() == "")
            {
                alert("请输入密码");
                return false;
            }
            if ($("#<%=txtPassword.ClientID %>").val().length < 6)
            {
                alert("密码长度不得小于６位");
                return false;
            }


            if ($("#<%=txtPassword.ClientID %>").val() != $("#<%=Password2.ClientID %>").val())
            {
                alert("两次密码不一样");
                return false;
            }
            if ($("#<%=Name.ClientID %>").val() == "")
            {
                alert("请输入真实姓名");
                return false;
            }
            if ($("#<%=Email.ClientID %>").val() == "")
            {
                alert("请输入Email");
                return false;
            }

            var email = $("#<%=Email.ClientID %>").val();
            if (email.indexOf("@") < 0 || email.indexOf(".") < 0)
            {
                alert("Email格式不正确");
                return false;
            }

            return true

        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="main">
        <div class="mainleft">           
            <uc1:UserCenterDir ID="UserCenterDir1" runat="server" />
           <uc2:SaleRank ID="SaleRank1" runat="server" />
        </div>
        <div class="mainright">
            <div class="membertit">
                您的位置：网站首页 > 会员中心
            </div>
            <div class="membertwo">
                <div class="memhead weight">
                    修改个人信息
                </div>
                <div class="messss weightt">
                    必填信息</div>
                <div class="messbody">
                    <asp:Panel ID="pnlMain" runat="server">
                    
                    <ul>
                        <li><span class="left">用户名：</span><span class="right"><asp:Literal ID="litMemberLoginName"
                            runat="server"></asp:Literal>
                        </span> </li>
                        <li><span class="left"><em>*</em>真实姓名：</span><span class="right"><asp:TextBox ID="Name"
                            runat="server" CssClass="text" style="width:120px;"></asp:TextBox>&nbsp;<asp:DropDownList
                                ID="drpGender" runat="server">
                            </asp:DropDownList>
                        </span> </li>
                        <li><span class="left"><em>*</em>设置密码：</span><span class="right"><asp:TextBox ID="txtPassword" TextMode="Password"
                            runat="server" CssClass="text"></asp:TextBox></span> 
                            <asp:HiddenField ID="hidPassword" runat="server" />
                        </li>
                        <li><span class="left"><em>*</em>重复密码：</span><span class="right"><asp:TextBox ID="Password2" TextMode="Password"
                            runat="server" CssClass="text"></asp:TextBox></span> </li>
                        
                         <li><span class="left"><em>*</em>Email：</span><span class="right"><asp:TextBox ID="Email"
                            runat="server" CssClass="text"></asp:TextBox></span> </li>
                        <li><span class="left">生日：</span> <span class="right">
                            <asp:TextBox ID="Birthday" runat="server" CssClass="text"></asp:TextBox></span> </li>
                        <li><span class="left">联系电话：</span><span class="right"><asp:TextBox ID="Mobile"
                            runat="server" CssClass="text"></asp:TextBox></span> </li>
                        <li><span class="left">详细地址：</span><span class="right"><asp:TextBox ID="Street"
                            runat="server" CssClass="text"></asp:TextBox></span> </li>
                        <li><span class="left">邮编：</span><span class="right"><asp:TextBox ID="ZipCode"
                            runat="server" CssClass="text"></asp:TextBox></span> </li>
                        
                       
                        
                    </ul>
                    </asp:Panel>
                    <div class="button">
                        <asp:ImageButton ID="btnSave" runat="server" ImageUrl="images/mbg.jpg" OnClientClick="return validate()"
                            onclick="btnSave_Click" />
                    </div>
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
</asp:Content>
